package com.wms.admin.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wms.common.annotation.Excel;
import com.wms.common.core.domain.BaseEntity;

/**
 * 管理员管理对象 admin
 * 
 * @author 熊竹俊
 * @date 2025-01-15
 */
public class Admin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 账号 */
    @Excel(name = "账号")
    private String no;

    /** 名字 */
    @Excel(name = "名字")
    private String name;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 角色 0超级管理员，1管理员，2普通账号 */
    @Excel(name = "角色 0超级管理员，1管理员，2普通账号")
    private Long roleId;

    /** 是否有效，Y有效，其他无效 */
    @Excel(name = "是否有效，Y有效，其他无效")
    private String isValid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNo(String no) 
    {
        this.no = no;
    }

    public String getNo() 
    {
        return no;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setIsValid(String isValid) 
    {
        this.isValid = isValid;
    }

    public String getIsValid() 
    {
        return isValid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("name", getName())
            .append("password", getPassword())
            .append("age", getAge())
            .append("sex", getSex())
            .append("phone", getPhone())
            .append("roleId", getRoleId())
            .append("isValid", getIsValid())
            .toString();
    }
}
